package android.support.v4.view;

final class o
  implements q
{
  private static int a(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    int i;
    int j = 1;
    if ((paramInt2 & 0x1) != 0)
    {
      i = 1;
      paramInt4 = paramInt3 | paramInt4;
      if ((paramInt4 & 0x1) == 0)
        break label50;
    }
    label50: for (paramInt3 = j; ; paramInt3 = 0)
      while (true)
      {
        if (i == 0)
          break label63;
        if (paramInt3 == 0)
          break label55;
        throw new IllegalArgumentException("bad arguments");
        i = 0;
      }
    label55: paramInt4 = paramInt1 & (paramInt4 ^ 0xFFFFFFFF);
    do
    {
      return paramInt4;
      label63: paramInt4 = paramInt1;
    }
    while (paramInt3 == 0);
    return (paramInt1 & (paramInt2 ^ 0xFFFFFFFF));
  }

  private static int c(int paramInt)
  {
    if ((paramInt & 0xC0) != 0)
      paramInt |= 1;
    while (true)
    {
      int i = paramInt;
      if ((paramInt & 0x30) != 0)
        i = paramInt | 0x2;
      return (i & 0xF7);
    }
  }

  public final boolean a(int paramInt)
  {
    return (a(a(c(paramInt) & 0xF7, 1, 64, 128), 2, 16, 32) != 1);
  }

  public final boolean b(int paramInt)
  {
    return ((c(paramInt) & 0xF7) != 0);
  }
}